Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
@any-touch/press
Advanced tools
按压识别器.
npm i -S @any-touch/press
// 只加载press识别器(按压)
import Core from '@any-touch/core';
import press from '@any-touch/press';
const at = new Core(el);
at.use(press, 参数)
// 按压
at.on('press', (event) => {
// event包含位置/速度/方向等信息
});
名称 | 数据类型 | 默认值 | 说明 |
---|---|---|---|
name | String | 'press' | 自定义事件名称 |
pointLength | Number | 1 | 支持的触点数, 可支持多指按压 |
maxDistance | Number | 9 | 触点允许移动的最大距离 |
minPressTime | Number | 251 | 触发事件需要按压的最小时间 |
FAQs
any-touch的识别器, 用来识别按压手势.
The npm package @any-touch/press receives a total of 236 weekly downloads. As such, @any-touch/press popularity was classified as not popular.
We found that @any-touch/press demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.